package com.gjm.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/log")
@RestController
public class LogController {

    @RequestMapping("/print")
    public void print(String[] args) {
        Logger logger = LoggerFactory.getLogger(LogController.class);

        //trac与debug不显示
        logger.trace("logger trace...");
        logger.debug("logger debug...");
        logger.info("logger info...");
        logger.warn("logger warn...");
        logger.error("logger error...");

    }
}
